//
//  Test28.cpp
//  CPPTest
//
//  Created by you5 Yi on 2021/9/25.
//

#include "Test28.hpp"
#include <iostream>
using namespace std;
class A {
private:
    int a;
    int b;
public:
    A(int x,int y) {
        a = x;
        b = y;
    }
    void set(int x, int y) {
        a = x;
        b = y;
    }
    void display() {
        cout<<a<<'*'<<b<<'='<<a*b;
    }
};

void test28() {
    A a(1,1);
    for (int i=1; i<=9; i++) {
        for (int j=1; j<=9; j++) {
            a.set(j, i);
            a.display();
            cout<<" ";
        }
        cout<<endl;
    }
}
